package com.ych.modules.base.dbEntity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: Usopp.tsui
 * Date: 2020/12/5
 * Time: 15:33
 * Description:
 */
@Data
@TableName("t_sys_role")
@ApiModel(value = "TSysRoleEntity", description = "数据库-系统角色表")
public class TSysRoleEntity extends AbstractPageEntity {
    @TableId("role_id")
    @ApiModelProperty(value = "主键", dataType = "String", notes = "主键")
    private String roleId;

    @TableField("role_name")
    @ApiModelProperty(value = "角色名称", dataType = "String", notes = "角色名称")
    private String roleName;

    @TableField("remark")
    @ApiModelProperty(value = "备注", dataType = "String", notes = "备注")
    private String remark;

    @TableField("create_user_id")
    @ApiModelProperty(value = "创建者id", dataType = "String", notes = "创建者id")
    private String createUserId;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间", dataType = "String", notes = "创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty(value = "修改时间", dataType = "String", notes = "修改时间")
    private Date updateTime;

    @TableField("status")
    @ApiModelProperty(value = "状态 0：正常，1：禁用，2：删除", dataType = "String", notes = "状态 0：正常，1：禁用，2：删除")
    private String status;

    @TableField(exist = false)
    private List<String> menuIdList;
}
